package com.ruoyi.safe.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.CommonEntity;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 专区对象 t_special_zone
 *
 * @author zmk
 * @date 2025-03-24
 */
@Setter
@Getter
@TableName("t_special_zone")
public class TSpecialZone extends CommonEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 专区id
     */
    @TableId
    private Long zoneId;

    /**
     * 删除标志（0代表存在 1代表删除）
     */
    private Integer delFlag;

    /**
     * 标题
     */
    @Excel(name = "标题")
    private String title;

    /**
     * 热度
     */
    @Excel(name = "热度")
    private Long heatDeg;

    /**
     * 测评的数量
     */
    @Excel(name = "测评的数量")
    private Long evaluationCount;

    /**
     * 主页背景图
     */
    @Excel(name = "主页背景图")
    private String homeBackground;

    /**
     * 头像地址
     */
    @Excel(name = "头像地址")
    private String avatar;

    /**
     * 粉丝数
     */
    @Excel(name = "粉丝数")
    private Long fansCount;
    /**
     * 父菜单名称
     */
    private String parentName;

    /**
     * 父菜单ID
     */
    private Long parentId;
    /**
     * 显示顺序
     */
    private Integer orderNum;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("zoneId", getZoneId())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("title", getTitle())
                .append("heatDeg", getHeatDeg())
                .append("evaluationCount", getEvaluationCount())
                .append("homeBackground", getHomeBackground())
                .append("avatar", getAvatar())
                .append("fansCount", getFansCount())
                .toString();
    }
}
